package vip.liux.contracts.shared.enums.messing;

import vip.liux.core.enums.IEnum;

/**
 * 通知渠道类型
 * <p>
 * 0 - 站内消息
 * 1 - 短信
 * 2 - 邮件
 * 3 - Webhooks
 */
public enum ChannelType implements IEnum {
    IN_APP_MESSAGE(0, "站内消息"),
    SMS(1, "短信"),
    EMAIL(2, "邮件"),
    WEBHOOKS(3, "WEBHOOKS");

    final int value;
    final String desc;

    ChannelType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
